#ifndef CSWITCHX_H
#define CSWITCHX_H

#include "control/cknxcontrol.h"

class CSwitchx : public CKnxControl
{
    Q_OBJECT
public:
    explicit CSwitchx(CKnxControl *parent = 0);

    void execDeviceAction(QString action,QString value,QString unit);
    void setKnxObject(void *xOBJECT);
    void execKnxAction(QString action,QString value);
    void readKnxAction();

    QString actionFromStatus(QString address,QString value);
    QString valueCheck(QString action,QString value);

private:
    QString _onValue,_offValue,_feedbackAddress;
    QStringList _sendOnArray;

    DATA_TYPE _feedbackDataType;
    DATA_DEFINE _feedbackValueDefine;
};

#endif // CSWITCH_H
